import time
def func1():
    x=2
    def inner():
        print(time.time())
        print(x)
        time.sleep(5)
        print(time.time())
    return inner

# inner=func1()
# inner()

func1()()